/// 简单封装富文本组件
library;

import 'package:flutter/material.dart';

class RichTextWidget extends StatelessWidget {
  final TextStyle? style;
  final List<TextSpan> children;

  const RichTextWidget({super.key, this.style, required this.children});

  @override
  Widget build(BuildContext context) {
    return RichText(
      text: TextSpan(
        text: "",
        children: children,
        style: style ?? DefaultTextStyle.of(context).style,
      ),
    );
  }
}
